const remarksIcon = "graph/images/remarks.png";
const startIcon = "graph/images/start1.png";
const debugIcon = "graph/images/debug1.png";
// const mappingIcon = 'graph/images/mapping.png'
const variableIcon = "graph/images/variable.png";
const constantIcon = "graph/images/constant.png";
const fieldselectIcon = "graph/images/fieldselect.png";
const outputIcon = "graph/images/output2.png";
const databaseOutputIcon = "graph/images/databaseOutput1.png";

const databaseIcon = "graph/images/database1.png";
const elasticIcon = "graph/images/elastic.png";
const excelInputIcon = "graph/images/excel-input.png";
const csvInputIcon = "graph/images/csv-input.png";
const sortingorderIcon = "graph/images/sorting-order.png";
const restApiIcon = "graph/images/RESTfulAPI.png";
const jsonIcon = "graph/images/json.png";
const javascriptIcon = "graph/images/javascript.png";
const splitIcon = "graph/images/split.png";
const filterIcon = "graph/images/filter.png";
const mergeIcon = "graph/images/merge.png";
const joinIcon = "graph/images/connect.png";
const copyIcon = "graph/images/copy.png";
const noteIcon = "graph/images/note.png";
export const componentList = [
  {
    code: "tongyong",
    title: "通用",
    toolbarItems: [
      {
        icon: startIcon,
        title: "开始",
        value: "start",
        option: {
          value: "开始",
          shape: "start"
        },
        style: {
          image: startIcon
        }
      },
      {
        icon: variableIcon,
        title: "定义变量",
        value: "variable",
        option: {
          value: "定义变量",
          loopVariableName: "",
          "variable-name": [],
          "variable-description": [],
          "variable-check": [],
          loopCount: "",
          "variable-value": [],
          shape: "variable"
        },
        style: {
          image: variableIcon // 图形
        }
      },
      {
        icon: restApiIcon,
        value: "request",
        title: "REST Client",
        option: {
          loopVariableName: "",
          method: "GET",
          sleep: "",
          timeout: "",
          "response-charset": "",
          retryCount: "",
          retryInterval: "",
          "body-type": "none",
          "body-content-type": "text/plain",
          loopCount: "",
          url: "",
          proxy: "",
          "request-body": "",
          "follow-redirect": "1",
          "tls-validate": "1",
          "cookie-auto-set": "1",
          "repeat-enable": "0",
          parameter: [],
          value: "开始抓取",
          shape: "request",
          "parameter-name": [],
          "parameter-description": [],
          "parameter-value": [],
          "cookie-name": [],
          "cookie-description": [],
          "cookie-value": [],
          "header-name": [],
          "header-description": [],
          "header-value": [],
          "parameter-form-name": [],
          "parameter-form-filename": [],
          "parameter-form-type": [],
          "parameter-form-description": [],
          "parameter-form-value": []
        },
        style: {
          image: restApiIcon // 图形
        }
      },
      {
        icon: databaseIcon,
        title: "数据库操作",
        option: {
          value: "数据库操作",
          datasourceId: "",
          databaseName: "",
          statementType: "select",
          sql: "",
          isStream: "0",
          shape: "executeSql"
        },
        style: {
          image: databaseIcon
        }
      },

      {
        icon: outputIcon,
        title: "输出",
        value: "output",
        style: {
          image: outputIcon // 图形
        },
        option: {
          csvEncoding: "GBK",
          csvName: "",
          datasourceId: "",
          loopCount: "",
          loopVariableName: "",
          "output-all": "0",
          "output-csv": "0",
          "output-database": "0",
          databaseName: "",
          "output-name": [],
          "output-value": [],
          "output-check": [],
          "output-description": [],
          shape: "output",
          tableName: "",
          value: "输出"
        }
      }
    ]
  },
  {
    code: "spider",
    title: "网络采集",
    toolbarItems: []
  },
  {
    code: "deprecated",
    title: "弃用",
    toolbarItems: []
  }
];
